<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="app">
    <div v-if="type==='A'">
        a
    </div>
    <div v-else-if="type==='B'">
        b
    </div>
    <div v-else-if="type==='C'">
        c
    </div>
    <div v-else>
        d
    </div>

</div>

<script src="./node_modules/vue/dist/vue.js"></script>
<script>
    let app = new Vue({
        el: "#app",
        data: {
            type:"B"
        }
    });
</script>
</body>
</html>